
<?php foreach ($totles as $key=>$ts):?>

           <tr>
                  <td class="data"><div style="width:40px;"><?php echo $key+1+($current_page-1)*$per_page ?></div></td>
               　 <td class="data"><div style="width:70px;"><?php echo $ts['purchase_id'] ?></div></td>
                  <td class="data"><div style="width:90px;"><?php echo $ts['purchaseorder_date'] ?></div></td>
                  <td class="data"><div style="width:90px;"><?php echo $ts['arrive_date'] ?></div></td>
                  <td class="data"><div style="width:70px;"><?php echo $ts['poid'] ?></div></td>
                  <td class="data" style="word-wrap: break-word;"><div style="width:100px;"><?php echo $ts['sku'] ?></div></td>
                  <td class="data" style="word-wrap: break-word;"><div style="width:100px;"><?php echo $ts['sku_name'] ?></div></td>

                  <td class="data"><div style="width:150px;"><?php echo $ts['supplier'] ?></div></td>
                  <td class="data"><div style="width:80px;"><?php echo $ts['quantity'] ?></div></td>
               <td class="data"><div style="width:70px;"><?php echo $ts['ware_quantity'] ?></div></td>
               <!--<td class="data"><div style="width:70px;"><?php /*echo isset($ts['pay_date'])?$ts['pay_date']:''; */?></div></td>-->
               <td class="data"><div style="width:70px;"><?php echo $ts['recieve_quantity'] ?></div></td>
                  <td class="data"><div style="width:70px;"><?php echo $ts['check_quantity'] ?></div></td>

                   <td class="data"><div style="width:70px;"><?php echo isset($ts['wa_date'])?$ts['wa_date']:''; ?></div></td>
                  <td class="data"><div style="width:70px;"><?php echo $ts['no_recieve']
									/*if($ts['status']==90) echo 0; else {
									if($ts['quantity']-$ts['ware_quantity']>=0)
										echo $ts['quantity']-$ts['ware_quantity'];
									else 
										echo $ts['recieve_quantity']-$ts['ware_quantity'];
									} */?></div></td>
                  <td class="data"><div style="width:70px;"><?php echo $ts['extra_recieve_quantity'] ?></div></td>
									<td class="data"><div style="width:70px;"><?php echo $ts['status'] ?></div></td>


           </tr>

<?php endforeach;?>
